{extend name="$_admin_base_layout" /}

{block name="content"}
<div class="alert alert-info alert-dismissable">
    <a href="{:url('uploadBadWords')}" class="btn btn-primary push-5-r push-10" type="button"><i class="fa fa-upload"></i> 上传文档添加</a>
    <a href="{:url('downloadBadWords')}" class="btn btn-info push-5-r push-10" type="button"><i class="fa fa-download"></i> 导出到本地</a>
    <a href="{:url('delete_all_bad_words')}" class="btn btn-info push-5-r push-10" type="button"><i class="fa fa-download"></i> 删除所有违禁词</a>
</div>

<div class="row">
    {volist name = "list" id = "word"}
    <div class="col-sm-3 col-lg-2">
        <a class="block block-bordered block-link-hover3" href="javascript:void(0)">
            <table class="block-table text-center">
                <tbody>
                <tr>
                    <td class="bg-gray-lighter border-r" style="width: 50%;">
                        <div class="push-30 push-30-t">
                            {$word.words}
                        </div>
                    </td>
                    <td style="width: 50%;">
                        <div class="h1 font-w700">
                            <a href="{:url('delete_bad_words',['id'=>$word.id])}"><i class="fa fa-window-close"></i></a>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </a>
    </div>
    {/volist}
</div>
<div class="row">
    {$page}
</div>
{/block}

{block name="script"}
<script src="__ADMIN_JS__/core/jquery.countTo.min.js"></script>
<script>
    jQuery(function () {
        App.initHelpers(['appear-countTo']);
    });
</script>
{/block}